import React from "react"
const Home = React.lazy(() => import('../view/Home'));
const Login = React.lazy(() => import('../view/Login'));


let routeList = [
    {
        path:"/home",
        component:Home
    },
    {
        path:"/login",
        component:Login,
    },
    {
        to:localStorage.getItem("token")==null?"/login":"/home",
        from:"/"
    }
];
export default routeList;